package com.linjacy.httpproject.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

@Data
public class RegisterUserRequest {

    @NotBlank(message = "不能为空")
    @Length(max = 10,message = "长度不能超过10")
    private String userName;

    @NotBlank(message = "不能为空")
    private String password;

}
